package mindteck.store;

import java.util.ArrayList;
import java.util.List;

public class Customer {
	private CustomerBean customerBean;
	
	public Customer(){
		
	}
	
	public Customer(CustomerBean customerBean){
		this.customerBean = customerBean;
	}

	public CustomerBean getCustomerBean(){
		return customerBean;
	}
	
	public void setCustomerBean(CustomerBean customerBean){
		this.customerBean = customerBean;
	}
	
	public boolean register(CustomerDAO customerDAO){
		boolean t = true;
		t = customerDAO.insertCustomer(customerBean);
		return t;
	}
	
	/*update profile by first setting values that need to be set
	 *  in a customerBean then then use this method*/
	public void updateProfile(CustomerBean cbean){
		this.customerBean = cbean;
	}
	
	/*Not implemented yet. This method is not needed in our project yet. Just future improvment*/
	public List<String> search(String productToSearch){
		return new ArrayList<String>();
	}
}
